import java.util.Objects;

public class ScoreSort_Stu {
    private String name;
    private int Chinese_score;
    private int Math_score;
    public ScoreSort_Stu(){}
    public ScoreSort_Stu(String name,int Chinese_score,int Math_score){
        this.name = name;
        this.Chinese_score = Chinese_score;
        this.Math_score = Math_score;
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void setChinese_score(int Chinese_score){
        this.Chinese_score= Chinese_score;
    }
    public int getChinese_score(){
        return this.Chinese_score;
    }
    public void setMath_score(int Math_score){
        this.Math_score= Math_score;
    }
    public int getMath_score(){
        return this.Math_score;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ScoreSort_Stu that = (ScoreSort_Stu) o;
        return Chinese_score == that.Chinese_score && Math_score == that.Math_score && name.equals(that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, Chinese_score, Math_score);
    }



}
